package interfaces.kernel;

import java.io.Serializable;

/**
 * a result in JCL is composed by a success result or an error result. This way, 
 * the developer can easy get the result, verify if it is null. If it is null
 * there is an error result of the developer code. JCL must guarantee the
 * middleware robust execution.
 * @author Joubert Lima
 * @version 1.0
 */

public interface JCL_result extends Serializable{
	
	public abstract Object getCorrectResult();
	public abstract Exception getErrorResult();
	
	public abstract void setCorrectResult(Object r);
	public abstract void setErrorResult(Exception error);

}
